package com.jack006.api.controller.stock;

import com.jack006.grace.result.GraceJSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname StockControllerApi
 * @Description 股票管理
 * @Date 2021-07-05 20:49
 * @Created by jack
 */
@Api(value = "股票管理的 controller",tags = "股票管理的 controller")
@RequestMapping("/stock")
public interface StockControllerApi {


    @ApiOperation(value = "记录每日实时信息",notes = "记录每日信息",httpMethod = "GET")
    @GetMapping("/recordFlushInfo")
    GraceJSONResult recordFlushInfo(@RequestParam("code") String code);


    @ApiOperation(value = "记录每日信息",notes = "记录每日信息",httpMethod = "GET")
    @GetMapping("/recordDayInfo")
    GraceJSONResult recordDayInfo(@RequestParam("code") String code);

    @ApiOperation(value = "保存股票信息",notes = "保存股票信息",httpMethod = "GET")
    @GetMapping("/createStock")
    GraceJSONResult createStock(@RequestParam("code") String code);

    @ApiOperation(value = "获取股票快讯",notes = "获取股票快讯",httpMethod = "GET")
    @GetMapping("/searchStockNews")
    GraceJSONResult searchStockNews(@RequestParam(name = "time",required = false)String time);

}


